﻿using Basic.FlowGatewayModule.Interface;
using Basic.FlowRemoteModel.NodeEvent;
using Basic.FlowRemoteModel.NodeEvent.Model;

namespace Basic.FlowGatewayModule.lmpl
{
    internal class FlowNodeEventService : IFlowNodeEventService
    {
        public void Delete ( long id )
        {
            new DeleteFlowNodeEvent
            {
                Id = id
            }.Send();
        }
        public NodeEventDto[] Gets ( long nodeId )
        {
            return new GetFlowNodeEventList
            {
                NodeId = nodeId
            }.Send();
        }
        public bool Set ( NodeEventSet set )
        {
            return new SetFlowNodeEvent
            {
                Datum = set
            }.Send();
        }
    }
}
